<template>
	<u-button @click="load()">1111111</u-button>
</template>

<script>
export default{
	data(){
		return{
			hisevents:[]
		}
	},
	onLoad() {
		
	},
	methods:{
		load(size){
			if(!size)
				size = 4
			// console.log('size=',size)
			let url = './api/getHisEvents?pageInfo='+this.hisevents.length+','+size
			return this.kRequest('get',url)
						.then(data=>{
							console.log(data)
							let id = this.$store.state.login.user.uId
							// data.data.forEach(i=>{
							// 	i.state = i.participantsId.includes(id.toString())
							// 	i.enddateSTMP = new Date(i.enddate).getTime()
							// 		this.hisevents.push(i)
								
							// })
						})
						.catch(e=>{
						})
		}
	}
}
</script>

<style>
</style>
